manage height dynamically using div