When resizing window, solution to use overflow hidden hides the menu