Have you experimented with including the code from the linked thread within a Slider Element? I haven’t tested this myself but I don’t see why it wouldn’t work so it’s worth giving a shot.
I’d imagine you’d get some iffy UX here with the two elements both allowing for clicking and dragging as an interaction, however you can disable swipe gestures to ensure that visitors can only change the slides by clicking the arrow icons.