Reference for Shabbat 23:5
עוֹשִׂין כָּל צָרְכֵי הַמֵּת, סָכִין וּמְדִיחִין אוֹתוֹ, וּבִלְבַד שֶׁלֹּא יָזִיזוּ בוֹ אֵבֶר. שׁוֹמְטִין אֶת הַכַּר מִתַּחְתָּיו וּמַטִּילִין אוֹתוֹ עַל הַחֹל בִּשְׁבִיל שֶׁיַּמְתִּין. קוֹשְׁרִים אֶת הַלֶּחִי, לֹא שֶׁיַּעֲלֶה, אֶלָּא שֶׁלֹּא יוֹסִיף. וְכֵן קוֹרָה שֶׁנִּשְׁבְּרָה, סוֹמְכִין אוֹתָהּ בְּסַפְסָל אוֹ בַּאֲרֻכּוֹת הַמִּטָּה, לֹא שֶׁתַּעֲלֶה, אֶלָּא שֶׁלֹּא תוֹסִיף. אֵין מְעַמְּצִין אֶת הַמֵּת בְּשַׁבָּת, וְלֹא בְחֹל עִם יְצִיאַת נֶפֶשׁ. וְהַמְעַמֵּץ עִם יְצִיאַת נֶפֶשׁ, הֲרֵי זֶה שׁוֹפֵךְ דָּמִים:
All the needs of one who has died may be attended to (on Shabbath). He may be anointed [with oil] and rinsed [with water. And his upper and lower openings may be stopped up with a cloth or something else, so that wind not enter therein and he swell.], so long as he (the one in attendance) not stir a limb [i.e., that he not move and lift his hand or his foot or his eyelashes, it being forbidden to move a dead person or any of his limbs, even though it is permitted to touch him. And so with all muktzeh — it is permitted to touch it and forbidden to move it. And it is forbidden even to touch an egg hatched on Shabbath or on a festival, for, because of its roundness, "its touching is its moving."] The mattress may be removed from under him so that he come to lie on the sand and be preserved [and not putrefy quickly because of the heat of the sheets and the mats. But he may not be moved to place him upon the sand, as stated above: "so long as he not stir a limb."] His jaw may be closed [if it were opening] — not to move it up [i.e., not to close what had already opened, for this would entail moving a limb], but [to insure] that it not (open) further. Similarly, if a beam had broken, it may be supported with a bench or a bedpost [whose status is that of a movable) article] — not to raise it, [for that would be boneh ("building")], but [to insure] that it not (break) further. The eyes of a dead man may not be closed on Shabbath, [even after he has expired, this constituting moving of a limb], and (they may also) not be closed on a weekday. And if one closes a man's eyes as he is dying, he is a spiller of blood, [for the slightest thing may hasten his death.]