Dynamical D4-D8 branes in supergravity