Rewriting slideshows