make sure slides are in the right order