Forming equatorial rings around dying stars