Adjust elements' height for window size