fixed menu width calculation