initial implementation of slider