Change size (0, 0) if layer turns invisible