Width-$k$ Eulerian polynomials of type $A$ and $B$: The $\gamma$-positivity