Take `space` into account when checking size