update WindowLevelEffect

Fix the issue due to the change in Slicer API that broke the effect