Hi,
When using the Deform > Vertical mode, you can take advantage of the Flat Top and Flat Bottom parameters. These allow you to flatten the top or bottom of the geometry. The values define the maximum distance along the Z-axis over which the effect is applied, starting from the top or bottom of the object. Please find attached a sample scene. I hope this helps.
Best regards,