adjust blocks after resize