triggering window.resizes after menu opening and closing