The greasers' long, slick hair is a symbol of their gang, both to themselves and to others. When Ponyboy and Johnny cut and dye their hair while in hiding they're taking a symbolic step outside the gang. As a result, Ponyboy feels less secure, but also gains a bit of room in which to develop his individuality.