better resize (and mobile?) handling