remove slashes from subpages