fixed closed menu when resizing is happening