How to keep the size of cell in x and y coordinates in NPT ensemble

Hi every users,

I want to study the influence of pressure on z direction of one system, and run the system with NPT ensemble, but the result is that the size of cell in x and y direction

also can be changed, how can I do this job, anyone give me some suggestion?

Thanks in advance

/qinjian