proper resizing of blocks