[bugfix] close side menu on any window size

@settinghead please review and merge. Thanks