Beam Test Results of 4k pixel CMOS MAPS and High Resistivity Striplet Detectors equipped with digital sparsified readout in the Slim5 Low Mass Silicon Demonstrator