How to calculate the depth of sorting networks?
For selection/bubble sorting network algorithms, the main tricky point is that "some operations are overlapped" or in other words because of pipeling! (it is shown in figure below)
You can find more information in these lecture notes by Rolf Karlsson.

This is the reason why the time complexity is linear!