Slider mask responsive to slide content

Hello Designers!

I am designing a digital magazine for one of my clients. I developed this in a slider with a CMS connection. My client would very much like to see the pages of the document (slides) to be responsive to the content that is inside. Is there any way that this can be created?

Link to magazine:

With kind regards,