fix bug in kernel parameters
update sliding window