Magnetic filter for small particles