finish the first version of slider