applied gallery effect to all of the thumbnails