cleaning up slide nav code