Keep an eye on the numbers on the bottom of the moving platform in World 5-4. When enemies are on the platform, the number indicates how many. If five enemies are on the platform, it’ll lock up and stop moving across the level.
This can be both helpful and a hindrance, so watch the numbers carefully to make sure the platform is doing what you want it to do.