adds swiping functionality to mobile pictures