\documentclass{slides}
\begin{document}
    \begin{slide}

    Hello World on slide 1

    \end{slide}

    The text between slides is ignored

    \begin{slide}

    Hello World on slide 2

    \end{slide}
\end{document}