Move grid width to a variable