binding function for Array.prototype.slice.