Added Collapse of blocks when a (inner) frame is created, very crude
reworked frame logic