Added responsiveness with resize.