set max width of the menu