add jquery smart resize and smart scroll