Image comparison slider as a part of another prototype

I made a prototype website and I wanted to put an image comparison slider in it. But after creating the image slider, it works standalone but when I try to put that in a section of my website it doesn’t work and becomes a still image. I searched everywhere regarding frames, prototypes and nested frames but couldn’t find anything. I found many videos on image comparison slider as a standalone prototype not as a part of another prototype. So isn’t there any way to put the image comparison slider frame in a rectangular box in a section of the prototype website I am making?