fixed bug with wrong reference
tweaking style of slider