Make the slider method add the class

It just helps to keep the (user’s) code simpler if the library
adds the clumsily-named class, rather than the user having to
remember to do it.