The example you point at isn’t making the image extend, it’s making another version of the image pops up. And as you can put whatever you want in the slides of the slider widget, yes, it’s feasible, in various ways.
Build your final image element as you want it to appear, hide it (display none or opacity 0) and then call it back with an interaction set on click on the slide.