fix showing/hiding of elements for colorbox