Use ternary operator ?:
Add rtl option for slider