How to shorten (cut down) bifold door for custom basement rough opening

Sometimes when you want to finish a basement you find out that the opening is to small for standard store bought bifold door. Here is one of the option how to do it. In this case I took off 4" in total. 1" from top to keep it kind of all centered.