Removing duplicate sliding windows