preserve scroll position when executing previous chunks