Updated generate.slide