Support RTL for sliders.

(Requires some additional data in javascript.)