Reorder slides; remove extra \end{document}