Dark matter halo creation in moving barrier models