avoid creating redundant containers when switching between tabbed/stacked and split layouts