Master is at the end of the cable, slave is in the middle.
The master/slave jumpers need to be configured correctly to ensure the motherboard can correctly communicate with the drives. It isn't especially important which drive is the master and which the slave, other than most motherboards choosing the master on IDE0 as the default drive to boot from.