Dispersion of flexible polymer chains in confined geometries