Tabs: Fixed direction of slide transitions

Fixes #5633