Fix warnings and formatting
Added extra slice arity