Hide open page in nav

I’m trying to combine a navigation with a slider. For this I would need to hide the open page from navigation slider and slider. How could I make something like this:

<?php foreach($pages->visible() as $p)  "exept page active"  : ?>
    <li><a href="#0"><?php echo $p->title()->html() ?></a></li>               
<?php endforeach ?>

Thank you.

This should work:

<?php foreach($pages->visible()->not($page) as $p): ?>
    <li><a href="#0"><?php echo $p->title()->html() ?></a></li>               
<?php endforeach ?>

Works perfectly thanks.