To create a longer image with this pattern, you can use Layer→Split→Clones Array
Also, tutorial by @lehko: