What is the main difference between a master cylinder and a slave cylinder in a hydraulic system in terms of their functionality and role in a vehicle?