ReferenceError: slice is not defined

I have it setup exactly like that and it still uses all the files in the csv for me. Any ideas?