amorphous cell confined layer

Hi, there

I am trying to build an amorphous polymer model with x y direction periodic boundary condition and z direction nonperiodic. So I use confied layer to construct. After construction, there was a large area without any atoms at the top of box. Could you tell me why this happened and how to solve this problem? And attach are pictures of the model. Thanks a lot!

Lily