Wrap thumbnails

I did the tutorial for scrolling thumnbnails and image viewer because I need just the scroller. I like that the images are in an array from xml ( I need to weight/score my images) Anyone know how I can get them to “wrap”? In other words, when array[0] has passed hit_left completely, make it available at the end of the array (or enter a new image on the end of the array). Basically, everytime an image “falls off” replace it with another image and make the whole thing wrap.
thanks!