auto resize covers to fit container