make visualizations and their modals responsive to window dimensions