Click a thumbnail to view its gallery