slice.php: formatted + a few residual fixes