There are many laptop tables that have legs that slide under the bed with wheels, but the table goes over the bed when your laying back. They are quite common. Google searches (laptop bed table) will show you many. Here is but one link:
http://www.target.com/gp/detail.html/ref=sc_pgb_r_10_0_...se=1&asin=B000GAOHRG