merge slider functionality