Filter classes horizontally