get rid of empty space when a smaller tab selected