fix weird resizing in display: none