trimming navbar