updated navigation width function
Merge pull request #40 from massiveart/feature/navigation

updated navigation width function