improve rerendering tabs on window resizing