The association of elements to swimlanes is a purely geometrical one. I.e. the hierarchic swimlane algorithm associates only those elements to a given swimlane that already lie inside that swimlane when the algorithm is started. In other words, before expanding a subprocess, you will have to manually increase the size of the swimlane such that all elements of the expaned subprocess still lie inside the visual bounds of that swimlane.