Rite Aid narrows its loss in the Q1