resize control to avoid module overflows