make height resizing of cell work properly