[series] truncate timeseries to head/tail