Frustrations in Polymer Conformation in Gels and their Minimization