If you like or need to show the typical before and after image on your website you can also do it with Divi.
And you don’t need to spend money or learn tedious tutorials, you just have to install a free plugin, Before + After Images for Divi and activate it.

As soon as you activate it you have a new Divi module that you can insert into any page or post.

And setting it up is as simple as choosing the before and after image.

The result will show you the beautiful slider with the before and after image, which also adapts to the size of the images you use (tip: make sure they are the same size).