navigation: implement max items in navigation