Fixed bugs in sliding window statistics and started working on overlaying statistics in videos of slices