collapsing is now first-class, a command that is undoable
d3 all the things!