Click on a thumbnail to view the gallery