Added height scaling for top elements