calculate range when start scroll