Polymer networks between two parallel planar surfaces