make the navigation bar fold up when the screen is not wide enough