Custom Slider not showing image

Hello. I am trying to create my custom product slider. I followed the tutorial:

to perform my task. The product slider works fine in the administration but in the storefront, its showing me the code instead of the image.


I can see the slider is working because when I click on navigation buttons, it swipes and shows a different code. How do I fix this issue?