constrain size of logger div