Window resize event for menu toggle