slider using prototypal inheritance