improve "snpgdsSlidingWindow"