converting stuff to jquery to try and fix sticky slider