refactors some div classes for a better grid layout