fixing sorting of slides