Fixed bug when resizing window with side-nav