switch from window .offset() to .position(), make it easier to keep pdf position