Select the right tab after swipe