This is copying my own answer to another question, but this is definitely relevant for you:
A bid is an offer to buy something on an order book, so for example you may post an offer to buy one share, at $5.
An ask is an offer to sell something on an order book, at a set price. For example you may post an offer to sell shares at $6.
A trade happens when there are bids/asks that overlap each other, or are at the same price, so there is always a spread of at least one of the smallest currency unit the exchange allows.
Betting that the price of an asset will go down, traditionally by borrowing some of that asset and then selling it, hoping to buy it back at a lower price and pocket the difference (minus interest).
Going long, as you may have guessed, is the opposite of going short. Instead of betting that the price will go down, you buy shares in the hope that the price will go up.
So, let's say as per your example you borrow 100 shares of company 'X', expecting the price of them to go down. You take your shares to the market and sell them - you make a market sell order (a market 'ask'). This matches against a bid and you receive a price of $5 per share. Now, let's pretend that you change your mind and you think the price is going to go up, you instantly regret your decision. In order to pay back the shares, you now need to buy back your shares as $6 - which is the price off the ask offers on the order book. Similarly, the same is true in the reverse if you are going long.
Because of this spread, you have lost money. You sold at a low price and bought at a high price, meaning it costs you more money to repay your borrowed shares. So, when you are shorting you need the spread to be as tight as possible.