click on image to open gallery