removing unnecessary space around displayed eqs