updated slider functionality to use strut object