slice filenames on file index