fix broken grid in tablet mode