Open Swiper to a specific slide

I want to open swiper to a specific slide.
I have a gallery and I use the swiper as the slide show and it works well, however it starts the slides at the begining…
I want the user to be able click on a random image and it open the swiper showing that selected image first.

Click on the image icon to open swiper.