adjust window size for smooth to handle smaller than 20pix line profiles