Avoid choosing inactive templates for slices/slivers (#295)