There were no slaves involved in the construction of the pyramids. Egyptian farmers (most of the population) were moved to the pyramid sites during the annual river flooding of their lands. During the flood season and after harvest they worked on the pyramid construction. This is very well documented.
History of Yesterday delves into the rich tapestry of our past to uncover the people, events, and cultures that have shaped the world we know today.
historyofyesterday.com
There were about 20,000 workers on the three biggest pyramids. Only about 4.000 of those were permanent workers and the rest were ordinary citizens that provided about three months of labor a year as a civic duty. It appears all citizens had to perform civic duty. All these workers were well fed and well cared for. Medical treatment was available for all the workers equally. If they died while they were working on a pyraimid they were buried in individual tombs on site that were decorated by their families. Often the worker's job on the pyramid was illustrated on the walls of their tomb, much of what we know about the tools and methods used to build the pyramids was learned from these tomb drawings.
The pryramids took about 20 each years to build. Egyptian culture has existed for more than 2,500 years The citizens performed other civic duties when not working on the pyramids. Besides the obvious temple projects etc. they spent most of their civic duty time building and maintaining the extensive irrigation system that fed their nation.