fixing slide down bug