moving the image slightly when swiping