ZigZagkv: Dynamic KV Cache Compression for Long-context Modeling based on Layer Uncertainty