fix dimensions after browser resize