2D character sliding after velocity become 0

I am new to unity and I am trying to work on a 2d character controller. But I found that my character usually slides after I let go my keyboard button. How can I fix it?

void FixedUpdate()
{
    move = Input.GetAxis("Horizontal");
    if (move == 0)
    {
        Debug.Log("N");
        rb.velocity = new Vector2(0, rb.velocity.y);
    } else
    {
        Debug.Log(move);
        rb.AddForce(new Vector2(move * movingspeed, 0));
    }
}

By default, when you use keyboard input as an axis, the Input system applies some filtering to make it feel more like an analogue axis rather than a digital one. That means that even though you may have let go of the key, the Input system will filter it towards the current value over time. If you wish to make this more snappy, you can either increase the sensitivity and gravity of the input in the Input settings window, or you can use the GetAxisRaw method (which removes all input filtering);