You can split your slides.md into multiple files and organize them as you want using the src attribute.
src
slides.md
# Page 1 Page 2 from main entry. --- src: ./subpage.md ---
subpage.md
# Page 2 Page 2 from another file.
Learn more