Make grid expand when a limit is reached