Setting up next/back containers.