implement submenus

This also removes useless and buggy add/remove methods from the private
Slice class.

Also change the example to show new functionality