Add function to get x resolution of grid