Periodic Precipitation in a Confined Liquid Layer