adding in window resize function that snaps the nav closed if window is being dragged around when its open