Made window for Gaussian filter dynamic