better adjustment of menu width