Change method signature for slice()