fixing class name stored for each slide to the first class.