Add getOffsetSum method for getting element position in page