Programmatically slide pages on button click.