This has happened to all of us – you hand your smartphone to someone else to show them a picture, and they will eventually start swiping left and right through the gallery. There is really no way to prevent this. Once you hand over your phone, unlocked, to someone else, they can do pretty much anything they want.