we also have a `slice` fn defined in Angular.js file, so you should use it