how to use a slider