add buffer and bytearray to slides