Refactor TabWidget::switchtToRight()/Left()