responsive navigation width calculation