Expanding and Collapsing Tree Structures