Added time_slice function to AnalogSignal