Breaking the Rayleigh Limit in Thick Samples with Multi-slice Ptychography