faster version of TimeSlice