extract axis from dimension