diff --git a/lib/scarlet/slideshow.rb b/lib/scarlet/slideshow.rb
index <HASH>..<HASH> 100644
--- a/lib/scarlet/slideshow.rb
+++ b/lib/scarlet/slideshow.rb
@@ -32,7 +32,7 @@ module Scarlet
         enumerable.lines.each do |line|
           if line.include? "!SLIDE"
             slides << Scarlet::Slide.new
-            slides.last.classes = line.delete("!SLIDE").strip
+            slides.last.classes = line.gsub("!SLIDE", "").strip
           else
             next if slides.empty?
             slides.last.text << line
@@ -41,4 +41,4 @@ module Scarlet
         return slides
       end
   end
-end
\ No newline at end of file
+end
Use gsub instead of delete so that any overlapping characters with the string 'SLIDES' don't get deleted as well