Evolution of thick shells in curved spacetimes