check window size on each interval