set max height of details panel to 40%