Implement horizontal scrolling to switch tabs