Creating panels for each page and adding sliding transition on click