rewrote carousel template