get array X and Y position