get group box class depending on max position