use $.position instead of $.offset