utils class that scale element to fit another