There's a bug in the dock. When hiding some apps in the drawer, as messages and Gmail, they also disappear from the dock. But other apps are OK. Telephone and camera stays in the dock when hiding them on the drawer.
(You don't need them at both locations)
/kr
Lars