adding conditional css for height