See
THIS Thread. There is no need for two solenoid valves, ever, to make a piston stop mid-stroke. This is done all the time in industry, and of course there is a simple solution.
Just keep in mind that air is compressible. That means, if the load on your piston changes,
it will move from that mid-point position.
Don