cleaned custom grid mixin code