added slider functionality, constraints