add swiping event