Add capability to adapt tab size to available width

Make the width of the tab the result of the available width divided by the number of tabs.