When user clicks on the thumbnail it opens in place of the main image.