It takes some practice and PATIENCE. but you just have to wait for the board to have 2 gems of the same type on top, one opposite gem, and another 2 of the same type on a column.
THEN, just try to exchange that ONE opposite gem on the LEFT or RIGHT side with a gem of the same type by eliminating gems on either side, until you can slide one in!