add a way to pass a custom template for slides