Open gallery view when clicking on the thumbnail image.