From damage to fracture, a modelization based on moving layers