using slider now in case we have a bunch of data points