fixing overflows for accordion