update code
create test for slider