sliding freq and average

using slicing along the preset windows seems to work well and
efficiently.

#22457893950796