Soft-close mechanism for sliding doors