If you are going down the rail/box with your right leg forward:
Jump off and do D+H+Left To get the motion going, then a little press of Up will help tweak it so that you land flat.
Likewise if you are going down the rail with your left leg forward:
Jump off and do C+G+Right to get the motion going, and again Up to tweak it down.