click on any image to open gallery