resize tab based on label