Move the active tab into the tab group on its left or right. If there is no group on that side, a new one is split off for it.