Add slider functionality for dim and brighten