Prepare a fair visual comparison
Use photographs taken from the same angle and crop them to the same dimensions. A shifted camera position can make the result look more dramatic than it is. Label which image is before and which is after.
For a renovation portfolio, compare the same room before and after the work. Keep exposure similar, describe what changed and avoid presenting retouching as a physical improvement. The visitor should understand the result even without dragging.
Test the slider with a finger on a narrow screen. Check that the handle is easy to find and that essential text remains outside the images. A normal photo gallery is a better choice when pictures show unrelated subjects.