Stellar Mass Assembly In Galaxy Clusters And High-Redshift Gravitationally Lensed Galaxies