<%= render component_tag(style: slide_styles, class: {"with-title": title?}) do %>
<% if title? %>

<%= title %>

<% end %>
<% if text_1? %>
<%= text_1 %>
<% end %> <% if image_1? %>
<%= image_1 %>
<% end %>
<% if text_2? %>
<%= text_2 %>
<% end %> <% if image_2? %>
<%= image_2 %>
<% end %>
<% end %>