Changed layer management to reduce flickering