Analysis of piles in sliding soil