Set correct grid offset for buttons