Correlation between ferromagnetism and hole localization in very thin (Ga,Mn)As epilayers