add change event for slider