resize frame on window resize
(22)