add function to change the slice_start and slice_end from time slider