click on a picture to open a gallery