changes media query for the navigation bar