making the height of the nav auto