Just jump by pressing the directional button towards the wall, it will make the character slide under it. It is also possible to jump while sliding.