Changed gallery to manage as thumbnails instead of list