P systems with active membranes working in sublinear space