Joining preformed parts by the expanding material