made a mistake when mving file open to the process_slides function