Added support for uneven sets of slides