fix type in save_slides