$img = $page->$slide()->toFile(); I need to append a value to the end of slide. See code. Thanks

I must be doing something wrong I can’t seem to call outside the loop, just the first image inside the structured data.