A high granularity active target for the PIONEER experiment