Dynamical effects in the formation of compaction bands