Added matrix check to slideing nav