Collapsing already made boxes into a flat condition