create a function for resizing hight per row