slides are now flask response objects, so we encode the data attribute