 how to config left and right arrow like the image example