Trying to add the navbar template to the sliding gallery