Direct sum decompositions of projective and injective modules into virtually uniserial modules