Polymer component for slide switching with animation