Please could you show a screenshot of your slider component.
Are you trying to change the number of labels each routine?
In my interactive slider demo I think I manage to change the labels themselves but not the number.
You also missed this thread which has some technical thoughts.