BUGFix: resolved the issue of "Not enough space to insert the source
into the stack" when creating large number of sources (e.g. drop files).
Now a depth is correctly computed for a new source when hitting the
MAX_DEPTH_LAYER, and if necessary all sources are re-distributed
uniformly on the depth axis to make room for new sources.