Add full support for max_items in the vertical menu