Can you please explain how the options you mentioned work for setting up infinite system in z-direction only. I am confused because pbc =xyz sets up pbc in all the directions.
I am attaching an image of the system that must be like as in image, just for your reference.