generates slides