add option to specify the class for slider