Yes, that part can be frustrating. You have to get Mario to run into the door at EXACTLY the same time as Bowser. The timing is difficult, but not impossible.
Be sure to pack plenty of power-ups before you break down the door, because you have to battle someone(thing?) inside. Also, save after breaking down the door in case you die to save some more frustration.