optimize category selection in slider