BoxCollider don't follow model animation (Mecanim)

I’m doing some tests with mecanim and finnaly got around on how making a simple siliding door for my 2d platformer.
The door responds correctly to my presence on the trigger, opening up when i’m close, closing down when i’m far.
Now i’m having another problem: my door has a collider to make me able to stay on top of it, but when the door slide up, the collider stay in place, not following the animated mesh.
How can i proceed in order for the collider keep up with the animations from the Mecanim system?

Thanks in advance

If you want your mecanim animations to move their coliders you’ll need to have “apply root motion” checked on the animator component property. Are you using mecanim or the legacy animation system to animate the door?