Smoother collapsing of navbar.