Flip between images when the user swipes from right to left and vice versa