Implement swiping for next/prev.