Adjust content height dynamically