Only calculate visible navigation items