Electroactive polymer driven smart beam