setting block panel height based on window height