swipe right function

when swipe to first pictures it stops