Click on a thumbnail to load main image and full details