Corrected indexing mistake in _timeslice_to_file and allows slice.stop to be None or larger than the total range