Added a/an expanding contracting css3 logic