You probably have magic_quotes_gpc set to on in php.ini. Set it to off, save and restart your web server.
That said, why are you using addslashes()? If it is because you want to escape text for entry into a database, then it is the wrong approach. Use the appropriate escaping mechanism for your database interface instead, e.g., prepared statements.