setting the frame height dynamically