equalHeight function