Which layer of the uterine wall is sloughed during menses? Which layer contracts during childbirth?