Getting many swords to stay small is a major problem for hobbiests with all but the largest of tanks. The fact is that many of them just grow too large for tanks under 50 - 75 gals., and I've heard people with 100+ gals. complain that they have taken over their tanks.
To help reduce size width-wise, pull the older, outside leaves off the plant, at the base, as needed. Many people do this because they tend to shade their neighbors if not pruned back. Cutting leaves at mid-point will look unnatural and ugly and in most cases will kill the leaf.
Height is a problem that is not fixable IME. They just get very tall and hard to cope with.
Vals come in many varieties and should not be cut at mid-leaf for the same reasons as above. If height is a problem you should look into other, lower varieties.
Stem plants, ofcourse are much more ammenable to pruning.
Len