fixing navigation collapse issues when mobile to desktop sliding of window width