Add support for serializing and deserializing slides