updated code to include sliding page transition and config updated