Give sprites an 'offset' in the X and Y directions and compute that offset for changing between animations that have different grid sizes...