transition from thumbnails to gallery