Add resize handling

crashe if screen size exceed an undefined size