click on a thumbnail