Dimension of attractors and invariant sets in reaction diffusion equations