Hello @tejwanihemant,
thank you for your reply! Ok, I also figured out that I can set a max-width for the elements with a good result. I really would like to set the max-heigth to for example 50vh to have a consistent heigth of all of my before after compare widgets. With the max-width it works good enough for me now.
Maybe the developer of this widget can think of an attribute to set the max-height to support my original plan.