separated dom utils from carousel