Sliding and localization in a biaxial test of granular material