Zoom to images within a slider

Community’m struggling to zoom into an image that is in a slider. Zoom image to make it lose its shape and combined with the following image and this is very unpleasant. I would like to get something like what happens in facebook, when you open an image and you can make zoom without affecting the other images.

Any idea or example of how to do something?