cleaning up window snapping