getting the thumbnails in order