Magnifying elements of semigroups of transformations with invariant set