gallery updated to use thumbnails