batch_slides code