Category slug $_SERVER[‘REQUEST_URI’];

your syntax is wrong change the single quotation mark to a double quotation mark and remove the semicolom
on this line:

if (($uri == '/category/$yourcat->slug;') { 

it should become:

if (($uri == "/category/$yourcat->slug") {