add offset to scrollto code