Implement swiping between tabs