Adding a plugin into a lightbox

I have a plugin that I would like to place inside a lightbox.

The plugin is a before and after slider function that lets you slide a bar across two images overlapping each-other. See it in action here: Imagery Gallery

I use a lightbox on my site by giving a class to images ex: <a href=“images/my_image” class=“lightbox”>LINK TO IMAGE INSIDE LIGHTBOX</a>

Now I would like to place the entire plugin inside the lightbox. How do I do this?