Rigidbody2D character movement problem

Hello everyone! I just started to make a platformer game, but I already got a problem with the character movement. I use rigidbody2D, alter it's velocity for horizontal movement, and use the AddForce method to jump. My problem is, that the character gets stuck on the walls, if I move it horizontally in the air. Could someone let me know, how should I get rid of this problem? Thanks for the answers!