@rgoj @agramfort how about a window maker function in utils like this:

```Python

def create_windows(seq, size, overlapping=True):
    k = 1 if overlapping else 0
    myrange = range(0, len(seq), size)
    return [(seq[p], seq[:p + size + k][-1]) for p in myrange]

```
from my personal utils.