Asymptotic analysis of soft thin layers with non convex energy