Acceleration of a slab driven by a constant pressure piston