better navigation width calculations