.phase {
  width: 100%;
  margin: 10px 10px 10px 0;
  cursor: pointer;
  transition: transform 0.2s ease;
  transform-origin: right center;
  position: relative; /* lets z-index work so the image sits above its neighbours */
}

.phase.expanded {
  transform: scale(1.8);
  z-index: 10;
}