fixed incomplete call to Array.prototype.slice

for some reason I previously missed to pass arguments