\(\dfrac{x}{x+2}-\dfrac{x^3}{x^3+8}\cdot\dfrac{x^2-2x+4}{x^2-4}\\ =\dfrac{x}{x+2}-\dfrac{x^3}{\left(x+2\right)\left(x^2-2x+4\right)}\cdot\dfrac{x^2-2x+4}{\left(x-2\right)\left(x+2\right)}\\ =\dfrac{x}{x+2}-\dfrac{x^3}{\left(x+2\right)^2\left(x-2\right)}\\ =\dfrac{x\left(x^2-4\right)-x^3}{\left(x+2\right)^2\left(x-2\right)}=\dfrac{x^3-4x-x^3}{\left(x+2\right)^2\left(x-2\right)}=\dfrac{-4x}{\left(x+2\right)^2\left(x-2\right)}\)