A slat fence is not considered a 'effective permanent barrier'.
4' is not 6', so the minimum distance is not compliant.
The fence mounted on the top rail of an AG pool as you describe, may protect the people in the pool, but offers no protection from someone outside the pool in the 4' zone.
The above is MHO, based on my take of your description.