Dynamically size modals based on window height