stab at unpacking the sliding window