fixing pic expand feature