click on a thumbnail to view the picture