Added folding and split resizing