fix clicks on thumbnails