tabs are resize depending on the size of the window