adding code

have timeline able to choose closest element to mouse. now we must
resize