I believe this happens when dock scales up depending on a number of apps running and icons become a little big bigger. I was annoyed by this too and disabled **`[ ]` Magnification**.

[![enter image description here][1]][1]


  [1]: https://i.sstatic.net/vBqCZ.png